package cn.jiahua.hospital.mapper;

import cn.jiahua.hospital.dto.IllnessDto;
import cn.jiahua.hospital.pojo.Illness;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface IllnessMapper {


    public IllnessDto getIllnessById(@Param(value = "id") Integer id);

    public List<Illness> getIllnessListByMap(Map<String, Object> param);

    public Integer getIllnessCountByMap(Map<String, Object> param);

    public List<IllnessDto> getIllnessListByMap1(Map<String, Object> param);

    public Integer getIllnessCountByMap1(Map<String, Object> param);

    public Integer insertIllness(Illness illness);

    public Integer updateIllness(Illness illness);

    public Integer deleteIllnessById(@Param(value = "id") Integer id);

    public Integer batchDeleteIllness(Map<String, List<String>> params);

}
